﻿<%@ Page Language="vb" AutoEventWireup="false" MasterPageFile="~/MasterPage.Master"
    CodeBehind="software.aspx.vb" Inherits="VerisEdiWebsite.software" Title="Software" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <br />

    <script runat="server"> 
    </script>

    <asp:DetailsView ID="DetailsView1" runat="server" Height="50px" Width="50%" AutoGenerateRows="False"
        DataSourceID="softwareDataSource" BackColor="AliceBlue" GridLines="None" BorderStyle="None"
        CellPadding="20" CellSpacing="5" HorizontalAlign="Center">
        <Fields>
            <asp:BoundField DataField="SoftwareName" HeaderText="Name" ShowHeader="False" SortExpression="SoftwareName"
                ItemStyle-ForeColor="GrayText" ItemStyle-Font-Bold="true" ItemStyle-Font-Size="1.25em"
                ItemStyle-HorizontalAlign="Center" >
<ItemStyle HorizontalAlign="Center" Font-Bold="True" Font-Size="1.25em" ForeColor="GrayText"></ItemStyle>
            </asp:BoundField>
            <asp:ImageField DataImageUrlField="SoftwareImage" HeaderText="Image" ShowHeader="False"
                SortExpression="SoftwareImage" ItemStyle-HorizontalAlign="Center">
<ItemStyle HorizontalAlign="Center"></ItemStyle>
            </asp:ImageField>
            <asp:BoundField DataField="SoftwareDescription" HeaderText="Description" ItemStyle-HorizontalAlign="Center"
                ShowHeader="False" SortExpression="SoftwareDescription" 
                ItemStyle-ForeColor="Gray" >
<ItemStyle HorizontalAlign="Center" ForeColor="Gray"></ItemStyle>
            </asp:BoundField>
        </Fields>
    </asp:DetailsView>
    <%--<asp:Panel ID="featuresPanel" runat="server" BackColor="AliceBlue" ForeColor="Gray" Width="50%"
    BorderStyle="None" HorizontalAlign="Center">--%>
    <asp:Panel ID="panel_CollapsablePanelBtn" runat="server" HorizontalAlign="Center">
        <asp:Button ID="btn_ShowFeatures" runat="server" Text="Click to view Software Features"
    BackColor="LightBlue" BorderStyle="None"></asp:Button>
    </asp:Panel>
   
    <asp:Panel ID="panel_CollapsablePanel" runat="server">
    <asp:DataList ID="DataList1" runat="server" DataSourceID="featuresDataSource" ForeColor="Gray"
        Width="50%" BackColor="AliceBlue" CellPadding="20" CellSpacing="5" HorizontalAlign="Center"
        GridLines="None">
        <ItemTemplate>
            SoftwareFeatures:
            <asp:Label ID="SoftwareFeaturesLabel" runat="server" Text='<%# Eval("SoftwareFeatures") %>' />
            <br />
            <br />
        </ItemTemplate>
    </asp:DataList>    
    </asp:Panel>
    <asp:CollapsiblePanelExtender ID="CollapsiblePanelExtender1" runat="server" 
    TargetControlID="panel_CollapsablePanel" CollapseControlID="panel_CollapsablePanelBtn" 
    Collapsed="true" ExpandControlID="panel_CollapsablePanelBtn" SuppressPostBack="true">
    </asp:CollapsiblePanelExtender>
    <asp:SqlDataSource ID="featuresDataSource" runat="server" ConnectionString="Provider=Microsoft.ACE.OLEDB.12.0;Data Source=|DataDirectory|\VerisEdiDB.accdb;Persist Security Info=True"
        ProviderName="System.Data.OleDb" SelectCommand="SELECT [SoftwareFeatures] FROM [VerisSoftware]">
    </asp:SqlDataSource>
    <%--</asp:Panel>--%>
    <br />
    
    <%--<asp:FormView ID="FormView1" runat="server" DataSourceID="SqlDataSource1" HeaderStyle-Font-Bold="false"
        HorizontalAlign="Center" BackColor="LightBlue" ForeColor="#333333" Width="60%">
        <EditItemTemplate>
            SoftwareDescription:
            <asp:TextBox ID="SoftwareDescriptionTextBox" runat="server" Text='<%# Bind("SoftwareDescription") %>' />
            <br />
            SoftwareFeatures:
            <asp:TextBox ID="SoftwareFeaturesTextBox" runat="server" Text='<%# Bind("SoftwareFeatures") %>' />
            <br />
            <asp:LinkButton ID="UpdateButton" runat="server" CausesValidation="True" CommandName="Update"
                Text="Update" />
            &nbsp;<asp:LinkButton ID="UpdateCancelButton" runat="server" CausesValidation="False"
                CommandName="Cancel" Text="Cancel" />
        </EditItemTemplate>
        <InsertItemTemplate>
            SoftwareDescription:
            <asp:TextBox ID="SoftwareDescriptionTextBox" runat="server" Text='<%# Bind("SoftwareDescription") %>' />
            <br />
            SoftwareFeatures:
            <asp:TextBox ID="SoftwareFeaturesTextBox" runat="server" Text='<%# Bind("SoftwareFeatures") %>' />
            <br />
            <asp:LinkButton ID="InsertButton" runat="server" CausesValidation="True" CommandName="Insert"
                Text="Insert" />
            &nbsp;<asp:LinkButton ID="InsertCancelButton" runat="server" CausesValidation="False"
                CommandName="Cancel" Text="Cancel" />
        </InsertItemTemplate>
        <ItemTemplate>
            <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataSourceID="softwareDataSource"
                BackColor="LightBlue" GridLines="None" HorizontalAlign="Center" Width="30%" CellPadding="20">
                <Columns>
                    <asp:BoundField DataField="SoftwareName" SortExpression="SoftwareName" ShowHeader="False" />
                    <asp:ImageField DataImageUrlField="SoftwareImage" ShowHeader="False">
                    </asp:ImageField>
                </Columns>
            </asp:GridView>
            <br />
            <asp:Label ID="SoftwareDescriptionLabel" runat="server" Width="30%" Text='<%# "SoftwareDescription: " + Bind("SoftwareDescription") %>' />
            <br />
            SoftwareFeatures:
            <asp:Label ID="SoftwareFeaturesLabel" runat="server" Width="50%" Text='<%# Bind("SoftwareFeatures") %>' />
            <br />
        </ItemTemplate>
    </asp:FormView>--%>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="Provider=Microsoft.ACE.OLEDB.12.0;Data Source=|DataDirectory|\VerisEdiDB.accdb;Persist Security Info=True"
        ProviderName="System.Data.OleDb" SelectCommand="SELECT [SoftwareDescription], [SoftwareFeatures] FROM [VerisSoftware]">
    </asp:SqlDataSource>
    <asp:SqlDataSource ID="softwareDataSource" runat="server" ConnectionString="Provider=Microsoft.ACE.OLEDB.12.0;Data Source=|DataDirectory|\VerisEdiDB.accdb;Persist Security Info=True"
        ProviderName="System.Data.OleDb" SelectCommand="SELECT [SoftwareName], [SoftwareImage], [SoftwareDescription], [SoftwareFeatures] FROM [VerisSoftware]">
    </asp:SqlDataSource>
    <asp:SqlDataSource ID="productsDataSource" runat="server" ConnectionString="Provider=Microsoft.ACE.OLEDB.12.0;Data Source=|DataDirectory|\VerisEdiDB.accdb;Persist Security Info=True"
        ProviderName="System.Data.OleDb" SelectCommand="SELECT [SoftwareName], [SoftwareImage], [SoftwareDescription], [SoftwareFeatures] FROM [VerisSoftware]">
    </asp:SqlDataSource>
    <%--<asp:Accordion ID="productsAccordion" runat="server" DataSourceID="productsDataSource"
        SelectedIndex="0">
        <Panes>
            <asp:AccordionPane ID="AccordionPane1" runat="server">
                <Header>
                    Header comes here
                </Header>
                <Content>
                    Content comes here
                </Content>
            </asp:AccordionPane>
        </Panes>
    </asp:Accordion>--%>
    <%--<asp:Accordion ID="productsAccordion" runat="server" Visible="true" AutoSize="None" RequireOpenedPane="false" FadeTransitions="true"
        TransitionDuration="250" DataSourceID="productsDataSource">
       
     <Panes>
            <asp:AccordionPane runat="server">
                <Header>
                   <%#DataBinder.Eval(Container.DataItem, "SoftwareName")%></Header>
                <Content>
                    <%#DataBinder.Eval(Container.DataItem, "SoftwareDescription")%></Content>
               
            </asp:AccordionPane>
        </Panes>
    </asp:Accordion>--%>
</asp:Content>
